package com.zut.controller;

import cn.hutool.json.JSONUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;


@RestController
@RequestMapping("/testBank/judge")
public class JudgeController {

    @PostMapping("/save")
    public Boolean SaveJudge(@RequestBody String msg){
        Map map = JSONUtil.toBean(msg, Map.class);
        //遍历取key和value
        System.out.println(map);

        System.out.println(map.keySet());


        return true;

    }
}
